
export default [
  //租户中心-租户管理
  {
    path: "/adminAccount",
    name: "adminAccount",
    icon: "enterpriseUserManagement.png",
    component: "./TenantManagement/AdminAccount/index",
    authority: ["adminAccount"],
  },
  {
    path: "/enterprise",
    name: "enterprise",
    authority: [
      "tenantManagement",
      "businessManage",
      "chargingCase",
      "expenseBill",
      "mineExpenseBill",
      "robotPage"
    ],
    icon: "tenantManagement.png",
    routes: [
      {
        path: "/enterprise/tenantManagement",
        name: "tenantManagement",
        component: "./TenantManagement/index",
        authority: ["tenantManagement"],
        hideInMenu: false,
      },
      {
        path: "/enterprise/tenantManagement/addOrEdit",
        name: "tenantManagement",
        icon: "tenantManagement.png",
        component: "./TenantManagement/add",
        hideInMenu: true,
      },
      {
        path: "/enterprise/robotManagement",
        name: "robotManagement",
        component: "./RobotManagement/robotList",
        authority: ["robotPage"],
      },
      {
        path: "/enterprise/robotManagement/robotEdit/:id",
        component: "./RobotManagement/robotEdit",
        hideInMenu: true,
      },
      {
        path: "/enterprise/businessManage",
        component: "./ChargingManage/businessManage/index",
        name: "businessManage",
        authority: ["businessManage"],
      },
      {
        path: "/enterprise/chargingCase",
        component: "./ChargingManage/chargingCase/index",
        name: "chargingCase",
        authority: ["chargingCase"],
      },
      {
        path: "/enterprise/expenseBill",
        component: "./ChargingManage/expenseBill/index",
        name: "expenseBill",
        authority: ["expenseBill"]
      },
      {
        path: "/enterprise/mineExpenseBill",
        component: "./ChargingManage/expenseBill/index",
        name: "mineExpenseBill",
        authority: ["mineExpenseBill"]
      },
    ]
  },

  //租户中心-能力中心
  {
    path: "/llmCenter",
    name: "llmCenter",
    authority: [
      "llmCenterLanguageModel",
      "llmCenterEmbeddingModel",
    ],
    icon: "llmCenter.png",
    routes: [
      //大语言模型管理
      {
        path: "/llmCenter/languageModel",
        name: "languageModel",
        component: "./LargeModelCenter/LanguageModel/index",
        authority: ["llmCenterLanguageModel"],
      },
      {
        path: "/llmCenter/languageModel/edit/:id",
        name: "languageModelEdit",
        component: "./LargeModelCenter/LanguageModel/editLanguageModel",
        hideInMenu: true,
      },
      //搜索模型管理
      {
        path: "/llmCenter/embeddingModel",
        name: "embeddingModel",
        component: "./LargeModelCenter/EmbeddingModel/index",
        authority: ["llmCenterEmbeddingModel"],
      },
      {
        path: "/llmCenter/embeddingModel/edit/:id",
        name: "embeddingModelEdit",
        component: "./LargeModelCenter/EmbeddingModel/editEmbeddingModel",
        hideInMenu: true,
      },
    ]
  },
  //租户中心-默认数据配置
  {
    path: "/defaultData",
    name: "defaultData",
    authority: [
      "defaultData",
      "defaultRole",
      "defaultCommand",
      "defaultAssistantManagement"
    ],
    icon: "defaultData.png",
    routes: [
      //默认角色
      {
        path: "/defaultData/authManage",
        name: "defaultRole",
        component: "./Account/authManage/authList",
        authority: ["defaultRole"],
      },
      {
        path: "/defaultData/authManage/authEdit",
        component: "./Account/authManage/authAddModal",
        hideInMenu: true,
      },
      {
        path: "/defaultData/authManage/authorization",
        component: "./Account/authManage/authorizationList",
        hideInMenu: true,
      },
      //默认指令
      {
        path: "/defaultData/modelInstruction/personalizedLibrary",
        name: "personalizedInstructionLibrary",
        component: "./LargeModelCenter/ModelInstruction/PersonalizedInstructionLibrary/index",
        authority: ["defaultCommand"],
      },
      //助手管理
      {
        path: "/defaultData/assistantManagement",
        name: "assistantCenter",
        component: "./AssistantCenter/index",
        authority: ["defaultAssistantManagement"],
        hideInMenu: true,
      },
    ]
  },
  //租户中心-计费管理
  {
    path: "/ChargingManage",
    name: "ChargingManage",
    icon: "setting",
    authority: ["chargingAccount","preCharging","resourceManage","resourcePricing","packageManage","discountManage"],
    hideInMenu: false,
    routes: [
      {
        path: "/chargingManage/packageManage",
        component: "./ChargingManage/packageManage/index",
        name: "packageManage",
        authority: ["packageManage"],
      },

      {
        path: "/chargingManage/discountManage",
        component: "./ChargingManage/discountManage/index",
        name: "discountManage",
        authority: ["discountManage"],
      },
      {
        path: "/chargingManage/resourceManage",
        component: "./ChargingManage/resourceManage/index",
        name: "resourceManage",
        authority: ["resourceManage"],
      },
      {
        path: "/chargingManage/resourcePricing",
        component: "./ChargingManage/resourcePricing/index",
        name: "resourcePricing",
        authority: ["resourcePricing"],
      },
      // {
      //   path: "/ChargingManage/chargingAccount",
      //   component: "./ChargingManage/chargingAccount/index",
      //   name: "chargingAccount",
      //   // authority: ["chargingAccount"],
      // },
      // {
      //   path: "/ChargingManage/preCharging",
      //   component: "./ChargingManage/preCharging/index",
      //   name: "preCharging",
      //   // authority: ["preCharging"],
      // },
      // {
      //   path: "/ChargingManage/preCharging/edit",
      //   component: "./ChargingManage/preCharging/edit",
      //   name: "preChargingEdit",
      //   hideInMenu: true,
      // },
    ]
  },
  //租户中心-平台设置
  {
    path: "/platformManagement",
    name: "platformManagement",
    icon: "setting",
    authority: ["platformManagement","platformInfoSetting", "sysAgreementInfo"],
    hideInMenu: true,
    routes: [
      //平台信息配置
      {
        path: "/platformManagement/infoSetting",
        component: "./PlatformManagement/InfoSetting/index",
        name: "infoSetting",
        authority: ["platformInfoSetting"],
      },
      //Licence授权
      {
        path: "/platformManagement/licenceSetting",
        component: "./PlatformManagement/LicenceSetting/index",
        name: "licenceSetting",
        authority: ["licenceAuth"],
      },
    ]
  },
  //租户中心-协议管理
  {
    path: "/defaultAgreementInfo",
    name: "defaultAgreementInfo",
    icon: "notification",
    authority: ["sysAgreement","sysUserAgreement","sysPrivacyAgreement"],
    routes: [
      {
        path: "/defaultAgreementInfo/sysUserAgreement",
        component: "./PlatformManagement/AgreementInfo/edit",
        name: "sysUserAgreement",
        authority: ["sysUserAgreement"],
      },
      {
        path: "/defaultAgreementInfo/sysPrivacyAgreement",
        component: "./PlatformManagement/AgreementInfo/edit",
        name: "sysPrivacyAgreement",
        authority: ["sysPrivacyAgreement"],
      },
    ]
  },
  {
    path: "/publicResource",
    name: "publicResource",
    icon: "documentLibrary.png",
    authority: ["publicDocumentLibrary"],
    routes: [
      {
        path: "/publicResource/documentLibrary",
        name: "documentLibrary",
        component: "./KnowledgeFile/docLibrary",
        authority: ["publicDocumentLibrary"],
      },
      {
        path: "/publicResource/documentLibrary/docLibrarySetting",
        name: "docLibrarySetting",
        component: "./KnowledgeFile/docLibrarySetting",
        hideInMenu: true,
      },
      {
        path: "/publicResource/documentLibrary/:id/file",
        component: "./KnowledgeFile/index",
        hideInMenu: true,
      },
      {
        path: "/publicResource/documentLibrary/:id/file/addMarkdown",
        component: "./KnowledgeFile/editFile/addMarkdown",
        hideInMenu: true,
      },
      {
        path: "/publicResource/documentLibrary/:id/file/addFile",
        component: "./KnowledgeFile/editFile/addFile",
        hideInMenu: true,
      },
      {
        path: "/publicResource/documentLibrary/:id/file/preview",
        component: "./KnowledgeFile/editFile/preview",
        hideInMenu: true,
      },
    ]
  },
]

